<?php
/**
 * 用户配置文件
 */

    // 发布文章随机时间间隔
    $interTimeMin =1;    // 秒 3分钟
    $interTimeMax =5;    // 秒 7分钟


    // 用户列表配置
    $userList = array(
        'jznanke'   => array(
            'userName' => 'szjznk01',
            'password' => 'szjznk0120160927',
            'hosType'  => 'jznk',
	        'mark'  => 'bfzy_jznk_%',
      ),
    	'120nk'   => array(
    		'userName' => 'sznkyy',
    		'password' => 'sznkyy0123654',
    		'hosType'  => 'jznk',
    		'mark'  => 'bfzy_jznk_%',
    			
    						)
    				
    	
    );


    // 先获取医院信息
    $csvTabName = array(
        'hosName'          => '医院简拼',
        'HospitalCity'     => '医院地区',
        'HospitalName'     => '医院名称',
        'HospitalFullName' => '医院全称',
        'HospitalAddr'     => '医院地址',
        'HosAbbrAddr'      => '医院短地址',
        'HospitalTel'      => '医院电话号码',
        'HospitalQQ'       => '医院QQ',
        'HospitalWecha'    => '医院微信',
        'DoctorName'       => '医生姓名',
        'operHours'        => '工作时间',
        'mobileSite'       => '手机站地址',
        'swtid'            => '商务通ID'
    );

    // 获取 CSV内容
    $jsonArr = csv2json(dirname(__FILE__) . '/hosTag.csv', $csvTabName);
    $hosRepKey = array();
    foreach ($jsonArr as $value) {
        // 分解医生信息
        $value['DoctorName'] = explode('/', $value['DoctorName']);
        // 分解手机站地址
        $value['mobileSite'] = explode('/', $value['mobileSite']);
        $hosRepKey[$value['hosName']] = $value;
    }
